root/OpenSceneGraph/trunk/src/osgWrappers/serializers/osgManipulator/ScaleAxisDragger.cpp @ 13855

Revision 13855, 0.6 kB (checked in by robert, 2 days ago)

From Alberto Luaces,"the current code uses the preprocessor for generating the plugin path in
a way that when CMAKE_INSTALL_PREFIX contains something along the lines


it gets substituted as


that is, the string is preprocessed again, thereby making changes to
anything that matches any defined symbol, as "linux" in this example

Quoting that path directly in CMake scripts solves that problem.

  • Property svn:eol-style set to native
1#include <osgManipulator/ScaleAxisDragger>
2#include <osgDB/ObjectWrapper>
3#include <osgDB/InputStream>
4#include <osgDB/OutputStream>
6REGISTER_OBJECT_WRAPPER( osgManipulator_ScaleAxisDragger,
7                         new osgManipulator::ScaleAxisDragger,
8                         osgManipulator::ScaleAxisDragger,
9                         "osg::Object osg::Node osg::Transform osg::MatrixTransform osgManipulator::Dragger "
10                         "osgManipulator::ScaleAxisDragger" )  // No need to contain CompositeDragger here
12    ADD_FLOAT_SERIALIZER(AxisLineWidth, 2.0f);
13    ADD_FLOAT_SERIALIZER(BoxSize, 0.05f);
Note: See TracBrowser for help on using the browser.