mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
clean up one more render::Item::isValid(ID)
This commit is contained in:
parent
7e39cc7753
commit
d3cdc5117f
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ bool Overlays::editOverlay(unsigned int id, const QScriptValue& properties) {
|
|||
render::ItemKey itemKey = render::payloadGetKey(thisOverlay);
|
||||
if (itemKey != oldItemKey) {
|
||||
auto itemID = thisOverlay->getRenderItemID();
|
||||
if (itemID != render::Item::INVALID_ITEM_ID) {
|
||||
if (render::Item::isValidID(itemID)) {
|
||||
render::ScenePointer scene = qApp->getMain3DScene();
|
||||
render::PendingChanges pendingChanges;
|
||||
pendingChanges.resortItem(itemID, oldItemKey, itemKey);
|
||||
|
|
Loading…
Reference in a new issue