Permalink
Browse files

FIX primitive group box disabled not loaded

When the group box of primitives was saved and then loaded the group was
always enabled, see also issue here:
http://www.fractalforums.com/bug-reporting-b231/v2-09-3-primitive-
revert-to-enabled/msg98166/#new
  • Loading branch information...
zebastian committed Dec 16, 2016
1 parent b7db649 commit 3e8c33f43807ad66b02f5be91cfadc2a600bde09
Showing with 2 additions and 1 deletion.
  1. +2 −1 mandelbulber2/src/interface.cpp
@@ -1465,7 +1465,8 @@ void cInterface::NewPrimitive(const QString &primitiveType, int index)
InitPrimitiveParams(objectType, primitiveFullName, gPar);
}
gPar->Set(primitiveFullName + "_enabled", true);
// primitiveFullName + "_enabled" will be set by SynchronizeInterfaceWindow
// gPar->Set(primitiveFullName + "_enabled", true);
mainWindow->automatedWidgets->ConnectSignalsForSlidersInWindow(mainWidget);
SynchronizeInterfaceWindow(mainWidget, gPar, qInterface::write);

5 comments on commit 3e8c33f

@zebastian

This comment has been minimized.

Show comment
Hide comment
@zebastian

zebastian Dec 16, 2016

Collaborator

@buddhi1980 was there some reason for backwards compatibility to this?

Collaborator

zebastian replied Dec 16, 2016

@buddhi1980 was there some reason for backwards compatibility to this?

@buddhi1980

This comment has been minimized.

Show comment
Hide comment
@buddhi1980

buddhi1980 Dec 16, 2016

Owner

I think it's something taken from Mandelbulber 1.21. I have just checked it. After your change everything works properly.

Owner

buddhi1980 replied Dec 16, 2016

I think it's something taken from Mandelbulber 1.21. I have just checked it. After your change everything works properly.

@zebastian

This comment has been minimized.

Show comment
Hide comment
@zebastian

zebastian Dec 16, 2016

Collaborator

Allright, thanks for checking

Collaborator

zebastian replied Dec 16, 2016

Allright, thanks for checking

@buddhi1980

This comment has been minimized.

Show comment
Hide comment
@buddhi1980

buddhi1980 Dec 17, 2016

Owner

I have just found why it was enabled by default. If you add new primitive using buttons in Primitives tab, then now new primitive is disabled and you need to enable it manually.

Owner

buddhi1980 replied Dec 17, 2016

I have just found why it was enabled by default. If you add new primitive using buttons in Primitives tab, then now new primitive is disabled and you need to enable it manually.

@buddhi1980

This comment has been minimized.

Show comment
Hide comment
@buddhi1980

buddhi1980 Dec 17, 2016

Owner

Finally fixed here: 9b17a76

Owner

buddhi1980 replied Dec 17, 2016

Finally fixed here: 9b17a76

Please sign in to comment.