Skip to content

Commit be41863

Browse files
committed
fix(volumemapper): fix rendering when no property is provided onto volume
VolumeMapper is expecting getProperties() to return a non-empty array
1 parent 7500dbe commit be41863

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/Rendering/Core/Prop3D/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,13 @@ function vtkProp3D(publicAPI, model) {
238238
return model.properties[mapperInputPort];
239239
};
240240

241+
publicAPI.getProperties = () => {
242+
if (model.properties.length === 0) {
243+
model.properties[0] = publicAPI.makeProperty?.();
244+
}
245+
return model.properties;
246+
};
247+
241248
publicAPI.setProperty = (firstArg, secondArg) => {
242249
// Two options for argument layout:
243250
// - (mapperInputPort, property)

0 commit comments

Comments
 (0)