In the class PrimitiveBase.as is not automatically updated geometry and UV.
No OK:
mesh = new Mesh(new PlaneGeometry(400, 400, 1, 1, true), material);
conteiner.addChild(mesh);
private function onMouseDown(event:MouseEvent):void {
PlaneGeometry(mesh.geometry).width -= 30;
}
OK:
mesh = new Mesh(new PlaneGeometry(400, 400, 1, 1, true), material);
conteiner.addChild(mesh);
private function onMouseDown(event:MouseEvent):void {
PlaneGeometry(mesh.geometry).width -= 30;
PlaneGeometry(mesh.geometry).subGeometries;
}
Because it
override public function get subGeometries():Vector.<SubGeometry> {
if (_geomDirty) updateGeometry();
if (_uvDirty) updateUVs();
return super.subGeometries;
}
Recommend how to solve this problem more elegant ...