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

Revision 13855, 0.7 kB (checked in by robert, 38 hours 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/TranslateAxisDragger>
2#include <osgDB/ObjectWrapper>
3#include <osgDB/InputStream>
4#include <osgDB/OutputStream>
6REGISTER_OBJECT_WRAPPER( osgManipulator_TranslateAxisDragger,
7                         new osgManipulator::TranslateAxisDragger,
8                         osgManipulator::TranslateAxisDragger,
9                         "osg::Object osg::Node osg::Transform osg::MatrixTransform osgManipulator::Dragger "
10                         "osgManipulator::TranslateAxisDragger" )  // No need to contain CompositeDragger here
12    ADD_FLOAT_SERIALIZER(AxisLineWidth, 2.0f);
13    ADD_FLOAT_SERIALIZER(PickCylinderRadius, 0.015f);
14    ADD_FLOAT_SERIALIZER(ConeHeight, 0.1f);
Note: See TracBrowser for help on using the browser.