Browse Source

Merge pull request #3224 from BabylonJSGuide/tutorials

correct slider header
Raanan Weber 7 years ago
parent
commit
80f787353f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Playground/js/pbt.js

+ 1 - 1
Playground/js/pbt.js

@@ -417,7 +417,7 @@ var PBT = function() {
             parent.addControl(header);  
             parent.addControl(header);  
 
 
             button.onValueChangedObservable.add(function(value) {
             button.onValueChangedObservable.add(function(value) {
-                header.text = "Y-rotation: " + onValueChange(value) + " " + unit;
+                header.text = text + onValueChange(value) + " " + unit;
                 func(value);
                 func(value);
             });
             });
             parent.addControl(button);
             parent.addControl(button);