root/OpenSceneGraph/trunk/src/osgWrappers/serializers/osgManipulator/TrackballDragger.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
of

/usr/x86_64-linux-gnu/

it gets substituted as

/usr/x86_64-1-gnu/

that is, the string is preprocessed again, thereby making changes to
anything that matches any defined symbol, as "linux" in this example
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=763816).

Quoting that path directly in CMake scripts solves that problem.
"

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