Skip to content

Commit fbdc1af

Browse files
committed
dev
1 parent 9776177 commit fbdc1af

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/ops/base/Ops.Gl.Meshes.ParametricSurface/Ops.Gl.Meshes.ParametricSurface.js

+1
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,7 @@ let geom = null;
691691

692692
const create = () =>
693693
{
694+
if (!op.patch.cg) return;
694695
if (shouldRender)
695696
{
696697
const uSegments = inSegmentsU.get();

src/ops/base/Ops.Gl.Meshes.Polyhedron_v2/Ops.Gl.Meshes.Polyhedron_v2.js

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ function getCellVertices(cellArr)
1919
return verts;
2020
}
2121

22-
op.onDelete = function () { if (mesh)mesh.dispose(); };
2322
function addFace(verts)
2423
{
2524
const colR = Math.random();

src/ops/base/Ops.Gl.Meshes.Polyhedron_v2/Ops.Gl.Meshes.Polyhedron_v2.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@
4747
"exampleProjectId": "VRG6Q6",
4848
"issues": "",
4949
"caniusequery": "",
50-
51-
"youtubeids": []
50+
"youtubeids": [],
51+
"license": "MIT"
5252
}

src/ops/base/Ops.Gl.Shader.BasicMaterial_v3/Ops.Gl.Shader.BasicMaterial_v3.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ op.toWorkPortsNeedToBeLinked(render);
88
op.toWorkShouldNotBeChild("Ops.Gl.TextureEffects.ImageCompose", CABLES.OP_PORT_TYPE_FUNCTION);
99

1010
const cgl = op.patch.cgl;
11-
const shader = new CGL.Shader(cgl, "basicmaterialnew", this);
11+
12+
const shader = new CGL.Shader(cgl, "basicmaterial", this);
1213
shader.addAttribute({ "type": "vec3", "name": "vPosition" });
1314
shader.addAttribute({ "type": "vec2", "name": "attrTexCoord" });
1415
shader.addAttribute({ "type": "vec3", "name": "attrVertNormal", "nameFrag": "norm" });

0 commit comments

Comments
 (0)