Permalink
Browse files

Hide editor by default

  • Loading branch information...
1 parent ebe77ac commit 6be2eff3f59529856d1377a6ff550af6638b2487 @notlion committed Aug 2, 2012
Showing with 6 additions and 0 deletions.
  1. +3 −0 public/src/views/ProgEditorButtonView.js
  2. +3 −0 public/template/step_template.fsh
@@ -38,6 +38,9 @@ define(function (require) {
this.model.on("change", this.render, this);
+ if(this.model.get("hides_when_closed"))
+ this.$el.hide();
+
this.render();
},
@@ -142,6 +142,9 @@ Get the current position of a particle at index {i}
vec4 getPos(in float i) {
return texture2D(position, getCoord(i) * oneOverRes);
}
+vec4 getPos(in int i) {
+ return getPos(float(i));
+}
/**
Pseudo-random value [0, 1] at vec2 {p}, {x, y}, or {x}

0 comments on commit 6be2eff

Please sign in to comment.