Mesh: Use freecad_cast whenever possible
This commit is contained in:
committed by
Benjamin Nauck
parent
ff99df4c4d
commit
4bd2cdeb2a
@@ -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