Commit 3d4e2109 authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

dump gik cells on lattice change

parent afda9d67
...@@ -47,6 +47,8 @@ define(['underscore', 'backbone', 'appState', 'globals', 'plist', 'three', 'thre ...@@ -47,6 +47,8 @@ define(['underscore', 'backbone', 'appState', 'globals', 'plist', 'three', 'thre
_reloadCells: function(cells, subclass){ _reloadCells: function(cells, subclass){
if (this.get("connectionType") == "gik" || this.previous("connectionType") == "gik") this.clearCells();
if (!cells) cells = JSON.parse(JSON.stringify(this.sparseCells)); if (!cells) cells = JSON.parse(JSON.stringify(this.sparseCells));
if (this._setDefaultCellMode) this._setDefaultCellMode(); if (this._setDefaultCellMode) this._setDefaultCellMode();
......
...@@ -110,7 +110,7 @@ define(['three'], function(THREE){ ...@@ -110,7 +110,7 @@ define(['three'], function(THREE){
face: { face: {
name: "Face", name: "Face",
subclass: "octaFaceLattice", subclass: "octaFaceLattice",
types: { type: {
octaTruss: { octaTruss: {
name: "Matt's Truss", name: "Matt's Truss",
parts: { parts: {
...@@ -135,7 +135,7 @@ define(['three'], function(THREE){ ...@@ -135,7 +135,7 @@ define(['three'], function(THREE){
edgeRot: { edgeRot: {
name: "Edge", name: "Edge",
subclass: "octaRotEdgeLattice", subclass: "octaRotEdgeLattice",
types: { type: {
snapVoxel: { snapVoxel: {
name: "Ben's Voxels", name: "Ben's Voxels",
parts: { parts: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment