Commit 6f223c94 authored by Isaak Lim's avatar Isaak Lim
Browse files

when loading VTK files the default color (managed by the color plugin) is now set

closes #1696

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17164 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6fa17684
......@@ -1562,6 +1562,9 @@ int FileVTKPlugin::loadObject(QString _filename) {
return -1;
}
bool rpc_ok(false);
emit functionExists( "colorplugin" , "setDefaultColor()", rpc_ok ) ;
if ( (forceTriangleMesh_) || (bestType == BMT_TriMesh) ){
// add a triangle mesh
......@@ -1592,6 +1595,8 @@ int FileVTKPlugin::loadObject(QString _filename) {
//general stuff
emit openedFile( object->id() );
if (rpc_ok)
RPC::callFunction("colorplugin", "setDefaultColor");
PluginFunctions::viewAll();
......@@ -1633,6 +1638,8 @@ int FileVTKPlugin::loadObject(QString _filename) {
//general stuff
emit openedFile( object->id() );
if (rpc_ok)
RPC::callFunction("colorplugin", "setDefaultColor");
PluginFunctions::viewAll();
......@@ -1675,6 +1682,8 @@ int FileVTKPlugin::loadObject(QString _filename) {
//general stuff
emit openedFile( object->id() );
if (rpc_ok)
RPC::callFunction("colorplugin", "setDefaultColor");
PluginFunctions::viewAll();
......@@ -1717,6 +1726,8 @@ int FileVTKPlugin::loadObject(QString _filename) {
//general stuff
emit openedFile( object->id() );
if (rpc_ok)
RPC::callFunction("colorplugin", "setDefaultColor");
PluginFunctions::viewAll();
......
......@@ -131,6 +131,7 @@ class FileVTKPlugin : public QObject, BaseInterface, FileInterface, LoadSaveInte
//RPCInterface
void pluginExists( QString _pluginName , bool& _exists );
void functionExists( QString _pluginName , QString _functionName , bool& _exists );
//TextureInterface
void setTextureMode(QString _textureName, QString _mode, int _id );
......
Supports Markdown
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