Commit 720aee31 authored by Jan Möbius's avatar Jan Möbius

Datacontrol speedup, only handle lightsources in file opened, if they are added



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15197 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 68dad684
......@@ -360,7 +360,10 @@ void DataControlPlugin::fileOpened(int _id){
if ( PluginFunctions::getObject(_id, obj) )
model_->objectAdded(obj);
// Only if the added object was a light source, we will traverse the objects!
if ( obj->dataType() == DATA_LIGHT)
slotShowLightSources(tool_->lightSources->checkState());
view_->resizeColumnToContents(0);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment