mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Allow ObjDefManager instances to be cloned
This commit is contained in:
parent
d1c6cc72cc
commit
2062c80e21
13 changed files with 370 additions and 5 deletions
|
@ -77,6 +77,11 @@ Schematic::~Schematic()
|
|||
delete []slice_probs;
|
||||
}
|
||||
|
||||
ObjDef *Schematic::clone() const
|
||||
{
|
||||
FATAL_ERROR("not cloneable");
|
||||
}
|
||||
|
||||
|
||||
void Schematic::resolveNodeNames()
|
||||
{
|
||||
|
@ -93,6 +98,7 @@ void Schematic::resolveNodeNames()
|
|||
|
||||
void Schematic::blitToVManip(MMVManip *vm, v3s16 p, Rotation rot, bool force_place)
|
||||
{
|
||||
assert(schemdata && slice_probs);
|
||||
sanity_check(m_ndef != NULL);
|
||||
|
||||
int xstride = 1;
|
||||
|
@ -177,7 +183,7 @@ bool Schematic::placeOnVManip(MMVManip *vm, v3s16 p, u32 flags,
|
|||
Rotation rot, bool force_place)
|
||||
{
|
||||
assert(vm != NULL);
|
||||
assert(schemdata != NULL);
|
||||
assert(schemdata && slice_probs);
|
||||
sanity_check(m_ndef != NULL);
|
||||
|
||||
//// Determine effective rotation and effective schematic dimensions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue