.. | .. |
---|
3622 | 3622 | |
---|
3623 | 3623 | void ClearMaterials() |
---|
3624 | 3624 | { |
---|
| 3625 | + if (blockloop) |
---|
| 3626 | + return; |
---|
| 3627 | + |
---|
| 3628 | + blockloop = true; |
---|
| 3629 | + |
---|
3625 | 3630 | ClearMaterial(); |
---|
3626 | | - for (int i = 0; i < size(); i++) |
---|
| 3631 | + for (int i = 0; i < Size(); i++) |
---|
3627 | 3632 | { |
---|
3628 | | - Object3D child = (Object3D) reserve(i); |
---|
| 3633 | + Object3D child = (Object3D) get(i); |
---|
3629 | 3634 | if (child == null) |
---|
3630 | 3635 | continue; |
---|
3631 | 3636 | child.ClearMaterials(); |
---|
3632 | | - release(i); |
---|
3633 | 3637 | } |
---|
| 3638 | + |
---|
| 3639 | + blockloop = false; |
---|
| 3640 | + } |
---|
| 3641 | + |
---|
| 3642 | + void ClearVersionList() |
---|
| 3643 | + { |
---|
| 3644 | + this.versionlist = null; |
---|
| 3645 | + this.versionindex = -1; |
---|
| 3646 | + this.versiontable = null; |
---|
| 3647 | + } |
---|
| 3648 | + |
---|
| 3649 | + void ClearVersions() |
---|
| 3650 | + { |
---|
| 3651 | + if (blockloop) |
---|
| 3652 | + return; |
---|
| 3653 | + |
---|
| 3654 | + blockloop = true; |
---|
| 3655 | + |
---|
| 3656 | + ClearVersionList(); |
---|
| 3657 | + for (int i = 0; i < Size(); i++) |
---|
| 3658 | + { |
---|
| 3659 | + Object3D child = (Object3D) get(i); |
---|
| 3660 | + if (child == null) |
---|
| 3661 | + continue; |
---|
| 3662 | + child.ClearVersions(); |
---|
| 3663 | + } |
---|
| 3664 | + |
---|
| 3665 | + blockloop = false; |
---|
3634 | 3666 | } |
---|
3635 | 3667 | |
---|
3636 | 3668 | void FlipV(boolean flip) |
---|