Mesh: Use freecad_cast whenever possible
This commit is contained in:
committed by
Benjamin Nauck
parent
6d99872b0f
commit
81c772938e
@@ -42,7 +42,7 @@ Transform::Transform()
|
||||
App::DocumentObjectExecReturn* Transform::execute()
|
||||
{
|
||||
/*
|
||||
Feature* pcFirst = dynamic_cast<Feature*>(Source.getValue());
|
||||
Feature* pcFirst = freecad_cast<Feature*>(Source.getValue());
|
||||
if (!pcFirst || pcFirst->isError())
|
||||
return new App::DocumentObjectExecReturn("Unknown Error");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user