Changed marker spheres to have constant size regardless of view scale.

This commit is contained in:
Markus Lampert
2017-06-16 14:15:29 -07:00
parent 25d3c839c1
commit efba956711

View File

@@ -1283,10 +1283,13 @@ class HoldingTagMarker:
self.pos = coin.SoTranslation()
self.pos.translation = (point.x, point.y, point.z)
self.sphere = coin.SoSphere()
self.scale = coin.SoType.fromName('SoShapeScale').createInstance()
self.scale.setPart('shape', self.sphere)
self.scale.scaleFactor.setValue(10)
self.material = coin.SoMaterial()
self.sep.addChild(self.pos)
self.sep.addChild(self.material)
self.sep.addChild(self.sphere)
self.sep.addChild(self.scale)
self.enabled = True
self.selected = False