Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
FreeCAD
FreeCAD
Commits
8b006b27
Commit
8b006b27
authored
Dec 18, 2012
by
wmayer
Browse files
Disable Placement editing for part design transformation features
parent
5ad2e662
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Mod/PartDesign/App/FeatureTransformed.cpp
View file @
8b006b27
...
...
@@ -55,6 +55,16 @@ Transformed::Transformed() : rejected(0)
Originals
.
setSize
(
0
);
}
void
Transformed
::
onChanged
(
const
App
::
Property
*
prop
)
{
if
(
prop
==
&
Originals
)
{
// if attached then mark it as read-only
this
->
Placement
.
StatusBits
.
set
(
2
,
Originals
.
getSize
()
!=
0
);
}
PartDesign
::
Feature
::
onChanged
(
prop
);
}
void
Transformed
::
positionBySupport
(
void
)
{
Part
::
Feature
*
support
=
static_cast
<
Part
::
Feature
*>
(
getSupportObject
());
...
...
src/Mod/PartDesign/App/FeatureTransformed.h
View file @
8b006b27
...
...
@@ -78,6 +78,9 @@ public:
*/
const
std
::
list
<
gp_Trsf
>
getRejectedTransformations
(
void
)
{
return
rejected
;
}
protected:
void
onChanged
(
const
App
::
Property
*
prop
);
protected:
std
::
list
<
gp_Trsf
>
rejected
;
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment