We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e596104 commit 9a0f302Copy full SHA for 9a0f302
cocos/editor-support/cocostudio/WidgetReader/WidgetReader.cpp
@@ -836,9 +836,9 @@ namespace cocostudio
836
void WidgetReader::setLayoutComponentPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* nodeOptions)
837
{
838
auto layoutComponentTable = ((WidgetOptions*)nodeOptions)->layoutComponent();
839
+ if (!layoutComponentTable) return;
840
841
auto layoutComponent = ui::LayoutComponent::bindLayoutComponent(node);
- if (!layoutComponentTable) return;
842
843
bool positionXPercentEnabled = layoutComponentTable->positionXPercentEnabled();
844
bool positionYPercentEnabled = layoutComponentTable->positionYPercentEnabled();
0 commit comments