Hello all!

Playing around with OpenSG actors I've found a bug in the actorEditGUI tool (on Windows but that should concern all platforms). When I want to save the generated base / class files for my Actor "BlaActor" into a directory "C:\TEMP\MyActor" the files are placed into "C:\TEMP" and the files are named like "MyActorBlaActorBase.h" and so on.

Fix:
In the file OSGActorEditViewCtl_qt.cpp are the methods
ActorEditViewCtl::writeActorBaseCodeButtonClicked and
ActorEditViewCtl::writeActorCodeButtonClicked

in each method after the lines...

-cut---------------------------
   if(dirName.isEmpty() == true)
       return;
-cut---------------------------

...one should add a simple

-cut---------------------------
   dirName += "/";
-cut---------------------------

There is no need for a distinction between the directory separators "/" and "\\" on windows, so you can safely use "/" in all cases.


Bye, Joerg.


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to