summaryrefslogtreecommitdiff
path: root/editor/editor_properties.cpp
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2018-07-29 22:40:09 +0200
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2018-07-29 22:40:12 +0200
commitf3c7527225c73812a7de10dfc273ba0e82e8d7ec (patch)
treeb0e9852a4d3514fa27a83f0f96b1232ecadbfbec /editor/editor_properties.cpp
parent6601502acd2fd5811418d65d4e26750ee83071c1 (diff)
Fix case where exported properties value is lost
Fixes exported property modified values lost when creating a placeholder script instance with a failed script compilation - Object set/get will call PlaceHolderScriptInstance's new fallback set/get methods as a last resort. This way, placeholder script instances can keep the values for storage or until the script is compiled successfuly. - Script::can_instance() will only return true if a real script instance can be created. Otherwise, in the case of placeholder script instances, it will return false. - Object::set_script(script) is now in charge of requesting the creation of placeholder script instances. It's no longer Script::instance_create(owner)'s duty. - PlaceHolderScriptInstance has a new method set_build_failed(bool) to determine whether it should call into its script methods or not. - Fixed a few problems during reloading of C# scripts.
Diffstat (limited to 'editor/editor_properties.cpp')
0 files changed, 0 insertions, 0 deletions