Skip to content

Commit e50534e

Browse files
committed
chore: allow sub classes to work without the paint
1 parent 902de0d commit e50534e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shapes/shape.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function createSetter(key, options: ShapePropertyOptions) {
7878
const oldValue = this[realKey];
7979
const actualVal = options.converter ? options.converter(newVal) : newVal;
8080
this[realKey] = actualVal;
81-
if (options.nonPaintProp !== true) {
81+
if (this.handlesPaint !== true && options.nonPaintProp !== true) {
8282
if (options.paintSetter) {
8383
options.paintSetter(this.paint, actualVal);
8484
} else if (options.paintSetterName) {

0 commit comments

Comments
 (0)