Browse Source

documention

Pamela Wolf 5 years ago
parent
commit
7b68b619e8

+ 6 - 1
src/Materials/Node/Blocks/gradientBlock.ts

@@ -31,13 +31,17 @@ export class GradientBlockColorStep {
     }
 
     private _color: Color3;
+
     /**
-     * Gets or sets the color associated with this step
+     * Gets the color associated with this step
      */
     public get color(): Color3 {
         return this._color;
     }
 
+    /**
+     * Sets the color associated with this step
+     */
     public set color(val: Color3) {
         this._color = val;
         this._parent.onValueChangedObservable?.notifyObservers(this._parent);
@@ -45,6 +49,7 @@ export class GradientBlockColorStep {
 
     /**
      * Creates a new GradientBlockColorStep
+     * @param parent defines the parent gradient for this block
      * @param step defines a value indicating which step this color is associated with (between 0 and 1)
      * @param color defines the color associated with this step
      */

+ 2 - 2
src/Materials/Node/nodeMaterialBlock.ts

@@ -158,7 +158,7 @@ export class NodeMaterialBlock {
 
      /** Gets or sets a boolean indicating that this input can be edited in the Inspector (false by default) */
      public visibleInInspector = false;
-    
+
     /**
      * Creates a new NodeMaterialBlock
      * @param name defines the block name
@@ -587,7 +587,7 @@ export class NodeMaterialBlock {
 
     protected _dumpPropertiesCode() {
         let variableName = this._codeVariableName;
-        return `${variableName}.visibleInInspector = ${this.visibleInInspector}`
+        return `${variableName}.visibleInInspector = ${this.visibleInInspector}`;
     }
 
     /** @hidden */