summarylogtreecommitdiffstats
path: root/osg340.patch
diff options
context:
space:
mode:
authorMichele Mocciola2016-05-03 23:35:42 +0200
committerMichele Mocciola2016-05-03 23:35:42 +0200
commit23457245b714bc84dde8e43e69ef0f64eff58ad8 (patch)
tree6f9196f57fa126d0841ce4e2d7e8c77cbc1538de /osg340.patch
parent375ba0f14fa94a2ca2d388bb9da9aff5bd918c4a (diff)
downloadaur-23457245b714bc84dde8e43e69ef0f64eff58ad8.tar.gz
updated to osg-3.4.0
Diffstat (limited to 'osg340.patch')
-rw-r--r--osg340.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/osg340.patch b/osg340.patch
new file mode 100644
index 000000000000..b28f4dff4296
--- /dev/null
+++ b/osg340.patch
@@ -0,0 +1,32 @@
+diff -Naur IfcPlusPlus.orig/IfcPlusPlus/src/ifcpp/geometry/ConverterOSG.h IfcPlusPlus/IfcPlusPlus/src/ifcpp/geometry/ConverterOSG.h
+--- IfcPlusPlus.orig/IfcPlusPlus/src/ifcpp/geometry/ConverterOSG.h 2016-05-03 22:48:45.167336967 +0200
++++ IfcPlusPlus/IfcPlusPlus/src/ifcpp/geometry/ConverterOSG.h 2016-05-03 22:59:10.007285252 +0200
+@@ -481,10 +481,9 @@
+ const osg::Geode* child_geode = dynamic_cast<const osg::Geode*>( node );
+ if( child_geode )
+ {
+- const osg::Geode::DrawableList& drawable_list = child_geode->getDrawableList();
+- for( auto it_drawables = drawable_list.begin(); it_drawables != drawable_list.end(); ++it_drawables )
++ for( int i=0; i < child_geode->getNumDrawables(); ++i )
+ {
+- osg::Drawable* drawable = ( *it_drawables );
++ const osg::Drawable* drawable = child_geode->getDrawable(i);
+ const osg::Geometry* child_gemetry = dynamic_cast<const osg::Geometry*>( drawable );
+ if( !child_gemetry )
+ {
+diff -Naur IfcPlusPlus.orig/IfcPlusPlus/src/ifcpp/geometry/GeomUtils.h IfcPlusPlus/IfcPlusPlus/src/ifcpp/geometry/GeomUtils.h
+--- IfcPlusPlus.orig/IfcPlusPlus/src/ifcpp/geometry/GeomUtils.h 2016-05-03 22:48:45.167336967 +0200
++++ IfcPlusPlus/IfcPlusPlus/src/ifcpp/geometry/GeomUtils.h 2016-05-03 22:59:51.353727925 +0200
+@@ -1223,10 +1223,9 @@
+ continue;
+ }
+ set_applied.insert( child_geode );
+- const osg::Geode::DrawableList& drawable_list = child_geode->getDrawableList();
+- for( osg::Geode::DrawableList::const_iterator it_drawables = drawable_list.begin(); it_drawables != drawable_list.end(); ++it_drawables )
++ for( int i=0; i < child_geode->getNumDrawables(); ++i )
+ {
+- osg::Drawable* drawable = ( *it_drawables );
++ osg::Drawable* drawable = child_geode->getDrawable(i);
+ osg::Geometry* child_geometry = dynamic_cast<osg::Geometry*>( drawable );
+ if( !child_geometry )
+ {