|
@@ -569,6 +569,21 @@ class Spray extends Object3D {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ override function editorRemoveInstance() : Void {
|
|
|
+ removeInteractiveBrush();
|
|
|
+ super.editorRemoveInstance();
|
|
|
+ }
|
|
|
+
|
|
|
+ override function makeObject(parent3d: h3d.scene.Object ) : h3d.scene.Object {
|
|
|
+ return new SprayObject(this, parent3d);
|
|
|
+ }
|
|
|
+
|
|
|
+ override function applyTransform() {
|
|
|
+ super.applyTransform();
|
|
|
+ cast(local3d, SprayObject).redraw();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
static public function makePrimCircle(segments: Int, inner : Float = 0, rings : Int = 0) {
|
|
|
var points = [];
|
|
|
var uvs = [];
|