fix(editor): Stateful component fixes (#12563) 26b149f92c Fixes a few issues: - In the Component properties inspector, clicking "source component" would result in a crash - In the Exposed properties inspector, we were incorrectly showing the message "Add view model properties to get started" when all properties were already added as input/outputs - Prevent a crash when a VM instance is parented to anything other than a NestedArtboard by exporting those instances as regular instances Co-authored-by: Philip Chung <philterdesign@gmail.com>
diff --git a/.rive_head b/.rive_head index 1ec46d0..30605a1 100644 --- a/.rive_head +++ b/.rive_head
@@ -1 +1 @@ -43b857965b8611e2117a954c13c142275d3c1915 +26b149f92c9767b3f6bbc573dca1199c70323aef
diff --git a/src/data_bind/data_context.cpp b/src/data_bind/data_context.cpp index e570dca..fcfcfb6 100644 --- a/src/data_bind/data_context.cpp +++ b/src/data_bind/data_context.cpp
@@ -43,6 +43,10 @@ instance = viewModelInstanceValue->as<ViewModelInstanceViewModel>() ->referenceViewModelInstance(); + if (instance == nullptr) + { + goto skip_path; + } } else { @@ -91,6 +95,10 @@ instance = viewModelInstanceValue->as<ViewModelInstanceViewModel>() ->referenceViewModelInstance(); + if (instance == nullptr) + { + goto skip_relative_path; + } } else {