Commit b76f5b1f authored by Jan Möbius's avatar Jan Möbius

Fix cppcheck warning

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@18174 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 605513db
......@@ -1175,7 +1175,7 @@ finishSpline()
if(!PluginFunctions::getObject(createSpline_CurrSelIndex_, lineObject))
return;
GlutPrimitiveNode* control = 0;
PolyLineBezierSplineData* splineData = dynamic_cast<PolyLineBezierSplineData*>(lineObject->objectData(BEZSPLINE_DATA));
TriMeshObject* mesh;
......@@ -1188,10 +1188,14 @@ finishSpline()
const ACG::Vec3d sizeBB((bbMax-bbMin));
if(splineData->finishSpline()) {
GlutPrimitiveNode* control = 0;
for(unsigned int i = 0; i < splineData->points_.size(); i++) {
lineObject->getAdditionalNode(control, name(), "control", i);
control->enablePicking(true);
}
for(unsigned int i = 0; i < splineData->handles_.size(); i++) {
const PolyLineBezierSplineData::InterpolatePoint& control = splineData->getInterpolatePoint(i);
const ACG::Vec3d hndlPos = splineData->handles_[i], ctrlPos = control.position;
......
Markdown is supported
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