diff --git a/cocos/editor-support/cocostudio/WidgetReader/GameNode3DReader/GameNode3DReader.cpp b/cocos/editor-support/cocostudio/WidgetReader/GameNode3DReader/GameNode3DReader.cpp index fcf1432e55..de9859804c 100644 --- a/cocos/editor-support/cocostudio/WidgetReader/GameNode3DReader/GameNode3DReader.cpp +++ b/cocos/editor-support/cocostudio/WidgetReader/GameNode3DReader/GameNode3DReader.cpp @@ -426,14 +426,6 @@ namespace cocostudio node->removeComponent(ComExtensionData::COMPONENT_NAME); } node->addComponent(extensionData); - - bool useDefaultLight = options->useDefaultLight(); - if (useDefaultLight) - { - AmbientLight* defaultLight = AmbientLight::create(Color3B::WHITE); - defaultLight->setIntensity(0.5f); - node->addChild(defaultLight); - } } Node* GameNode3DReader::createNodeWithFlatBuffers(const flatbuffers::Table *node3DOptions) diff --git a/cocos/editor-support/cocostudio/WidgetReader/Light3DReader/Light3DReader.cpp b/cocos/editor-support/cocostudio/WidgetReader/Light3DReader/Light3DReader.cpp index 647e16bcc3..9ec3316f27 100644 --- a/cocos/editor-support/cocostudio/WidgetReader/Light3DReader/Light3DReader.cpp +++ b/cocos/editor-support/cocostudio/WidgetReader/Light3DReader/Light3DReader.cpp @@ -78,7 +78,7 @@ namespace cocostudio auto temp = Node3DReader::getInstance()->createOptionsWithFlatBuffers(objectData, builder); auto node3DOptions = *(Offset*)(&temp); - bool enabled = false; + bool enabled = true; int type = 0; int flag = 0; float intensity = 1.0f;