adding 4 spaces instead of 2 spaces
This commit is contained in:
committed by
wmayer
parent
5667ff1df3
commit
88fb2fbc37
@@ -48,38 +48,38 @@ PROPERTY_SOURCE(Surface::Extend, Part::Spline)
|
||||
|
||||
void Surface::Extend::onChanged(const App::Property* prop)
|
||||
{
|
||||
// using a mutex and lock to protect a recursive calling when setting the new values
|
||||
if (!lockOnChangeMutex.try_lock()) return;
|
||||
lockOnChangeMutex.unlock();
|
||||
std::lock_guard<std::mutex> lock(lockOnChangeMutex);
|
||||
// using a mutex and lock to protect a recursive calling when setting the new values
|
||||
if (!lockOnChangeMutex.try_lock()) return;
|
||||
lockOnChangeMutex.unlock();
|
||||
std::lock_guard<std::mutex> lock(lockOnChangeMutex);
|
||||
|
||||
if ( ExtendUSymetric.getValue() )
|
||||
{
|
||||
if (prop->getName() == ExtendUNeg.getName()
|
||||
|| prop->getName() == ExtendUPos.getName())
|
||||
if ( ExtendUSymetric.getValue() )
|
||||
{
|
||||
auto changedValue = dynamic_cast<const App::PropertyFloat*>(prop);
|
||||
if (changedValue)
|
||||
{
|
||||
ExtendUNeg.setValue(changedValue->getValue());
|
||||
ExtendUPos.setValue(changedValue->getValue());
|
||||
}
|
||||
if (prop->getName() == ExtendUNeg.getName()
|
||||
|| prop->getName() == ExtendUPos.getName())
|
||||
{
|
||||
auto changedValue = dynamic_cast<const App::PropertyFloat*>(prop);
|
||||
if (changedValue)
|
||||
{
|
||||
ExtendUNeg.setValue(changedValue->getValue());
|
||||
ExtendUPos.setValue(changedValue->getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ExtendVSymetric.getValue())
|
||||
{
|
||||
if (prop->getName() == ExtendVNeg.getName()
|
||||
|| prop->getName() == ExtendVPos.getName())
|
||||
if (ExtendVSymetric.getValue())
|
||||
{
|
||||
auto changedValue = dynamic_cast<const App::PropertyFloat*>(prop);
|
||||
if (changedValue)
|
||||
{
|
||||
ExtendVNeg.setValue(changedValue->getValue());
|
||||
ExtendVPos.setValue(changedValue->getValue());
|
||||
}
|
||||
if (prop->getName() == ExtendVNeg.getName()
|
||||
|| prop->getName() == ExtendVPos.getName())
|
||||
{
|
||||
auto changedValue = dynamic_cast<const App::PropertyFloat*>(prop);
|
||||
if (changedValue)
|
||||
{
|
||||
ExtendVNeg.setValue(changedValue->getValue());
|
||||
ExtendVPos.setValue(changedValue->getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Part::Feature::onChanged(prop);
|
||||
Part::Feature::onChanged(prop);
|
||||
}
|
||||
|
||||
Extend::Extend()
|
||||
|
||||
@@ -58,7 +58,7 @@ public:
|
||||
short mustExecute() const;
|
||||
|
||||
private:
|
||||
virtual void onChanged(const App::Property* prop) override;
|
||||
virtual void onChanged(const App::Property* prop) override;
|
||||
};
|
||||
|
||||
}//Namespace Surface
|
||||
|
||||
Reference in New Issue
Block a user