Skip to content

Commit 98f6d32

Browse files
authored
re-publicize InstancedGeometry no-arg constructor, correct erroneous javadoc (#1230)
* re-publicize 3 no-arg constructors, correct/remove erroneous javadoc * re-protect 2 no-arg constructors, restore javadoc
1 parent 584bb79 commit 98f6d32

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

jme3-core/src/main/java/com/jme3/scene/Geometry.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ public class Geometry extends Spatial {
9898
private int nbSimultaneousGPUMorph = -1;
9999

100100
/**
101-
* Serialization only. Do not use.
101+
* Instantiate a <code>Geometry</code> with no name, no mesh, and no
102+
* material. The mesh and material must be set prior to rendering.
102103
*/
103104
public Geometry() {
104105
this(null);

jme3-core/src/main/java/com/jme3/scene/Node.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009-2018 jMonkeyEngine
2+
* Copyright (c) 2009-2019 jMonkeyEngine
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -83,7 +83,7 @@ public class Node extends Spatial {
8383
private boolean updateListValid = false;
8484

8585
/**
86-
* Serialization only. Do not use.
86+
* Instantiate a <code>Node</code> with no name, no parent, and no children.
8787
*/
8888
public Node() {
8989
this(null);
@@ -93,8 +93,7 @@ public Node() {
9393
* Constructor instantiates a new <code>Node</code> with a default empty
9494
* list for containing children.
9595
*
96-
* @param name the name of the scene element. This is required for
97-
* identification and comparison purposes.
96+
* @param name the name of the scene element
9897
*/
9998
public Node(String name) {
10099
super(name);

jme3-core/src/main/java/com/jme3/scene/instancing/InstancedGeometry.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,7 @@ public class InstancedGeometry extends Geometry {
6464

6565
private int firstUnusedIndex = 0;
6666

67-
/**
68-
* Serialization only. Do not use.
69-
*/
70-
protected InstancedGeometry() {
67+
public InstancedGeometry() {
7168
super();
7269
setIgnoreTransform(true);
7370
setBatchHint(BatchHint.Never);

0 commit comments

Comments
 (0)