Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 99aa92b

Browse files
author
livecodeali
committed
[[ Element Chunk ]] Only signal property listener on setting custom prop
1 parent 74767c2 commit 99aa92b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

engine/src/chunk.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4577,14 +4577,13 @@ bool MCChunk::getsetcustomprop(MCExecContext &ctxt, MCNameRef p_prop_name, MCNam
45774577
}
45784578
}
45794579

4580-
if (t_success)
4580+
if (t_success && !p_is_get_operation)
45814581
{
45824582
// MM-2012-09-05: [[ Property Listener ]] Make sure setting a custom property sends propertyChanged message to listeners.
45834583
t_object -> signallisteners(P_CUSTOM);
4584-
return true;
45854584
}
45864585

4587-
return false;
4586+
return t_success;
45884587
}
45894588

45904589
bool MCChunk::getcustomprop(MCExecContext& ctxt, MCNameRef p_prop_name, MCNameRef p_index_name, MCExecValue& r_value)

0 commit comments

Comments
 (0)