Skip to content

Commit 52d04b5

Browse files
committed
Use positive property name
1 parent 288a168 commit 52d04b5

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

extensions/2.0/Khronos/KHR_node_visibility/README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# KHR_node_visibility
1+
# KHR\_node\_visibility
22

33
## Contributors
44

@@ -21,13 +21,13 @@ This extension allows glTF animations and interactivity to control visibility of
2121

2222
## Extending Nodes
2323

24-
The `KHR_node_visibility` extension object is added to the objects within the `nodes` array. The extension object contains a single boolean `hidden` property. This value is mutable through JSON pointers as defined in the glTF 2.0 Asset Object Model and controls visibility of the node that contains it and all its children nodes recursively. A value of `true` causes all nodes below in the hierarchy to be omitted from display, even any nodes below that have a value of `false`.
24+
The `KHR_node_visibility` extension object is added to the objects within the `nodes` array. The extension object contains a single boolean `visible` property. This value is mutable through JSON pointers as defined in the glTF 2.0 Asset Object Model and controls visibility of the node that contains it and all its children nodes recursively. A value of `false` causes all nodes below in the hierarchy to be omitted from display, even any nodes below that have a value of `true`.
2525

26-
| | Type | Description | Required |
27-
|------------|-----------|---------------------------------------|---------------------|
28-
| **hidden** | `boolean` | Specifies whether the node is hidden. | No, default: `false`|
26+
| | Type | Description | Required |
27+
|-------------|-----------|----------------------------------------|--------------------|
28+
| **visible** | `boolean` | Specifies whether the node is visible. | No, default: `true`|
2929

30-
In other words, a node is visible if and only if its own `hidden` property is `false` and all its parents are visible. This allows a single change of a `hidden` property at a high level of the hierarchy to hide or show complex (multi-node) objects.
30+
In other words, a node is visible if and only if its own `visible` property is `true` and all its parents are visible. This allows a single change of a `visible` property at a high level of the hierarchy to hide or show complex (multi-node) objects.
3131

3232
In the following example, both nodes (and therefore their meshes) are initially hidden.
3333

@@ -39,7 +39,7 @@ In the following example, both nodes (and therefore their meshes) are initially
3939
"mesh": 0,
4040
"extensions": {
4141
"KHR_node_visibility": {
42-
"hidden": true
42+
"visible": false
4343
}
4444
},
4545
},
@@ -54,9 +54,9 @@ In the following example, both nodes (and therefore their meshes) are initially
5454

5555
The following pointer template represents the mutable property defined by this extension.
5656

57-
| Pointer | Type |
58-
|---------------------------------------------------|--------|
59-
| `/nodes/{}/extensions/KHR_node_visibility/hidden` | `bool` |
57+
| Pointer | Type |
58+
|----------------------------------------------------|--------|
59+
| `/nodes/{}/extensions/KHR_node_visibility/visible` | `bool` |
6060

6161
## JSON Schema
6262

extensions/2.0/Khronos/KHR_node_visibility/schema/node.KHR_node_visibility.schema.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"description": "glTF extension that defines node's visibility.",
66
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
77
"properties": {
8-
"hidden": {
8+
"visible": {
99
"type": "boolean",
10-
"description": "Specifies whether the node is hidden.",
11-
"default": false,
12-
"gltf_detailedDescription": "Specifies whether the node is hidden. A value of true means that the node and all its children are hidden."
10+
"description": "Specifies whether the node is visible.",
11+
"default": true,
12+
"gltf_detailedDescription": "Specifies whether the node is visible. A value of false means that the node and all its children are hidden."
1313
},
1414
"extensions": { },
1515
"extras": { }

0 commit comments

Comments
 (0)