Ensure CSG parent's _make_dirty() is called when entering a tree.
(cherry picked from commit 9be7b30f35
)
This commit is contained in:
parent
2987fb3b45
commit
c8d8134288
|
@ -136,18 +136,13 @@ void CSGShape::_make_dirty() {
|
|||
if (!is_inside_tree())
|
||||
return;
|
||||
|
||||
if (dirty) {
|
||||
return;
|
||||
if (parent) {
|
||||
parent->_make_dirty();
|
||||
} else if (!dirty) {
|
||||
call_deferred("_update_shape");
|
||||
}
|
||||
|
||||
dirty = true;
|
||||
|
||||
if (parent) {
|
||||
parent->_make_dirty();
|
||||
} else {
|
||||
//only parent will do
|
||||
call_deferred("_update_shape");
|
||||
}
|
||||
}
|
||||
|
||||
CSGBrush *CSGShape::_get_brush() {
|
||||
|
|
Loading…
Reference in New Issue