Minor change (consistency).

This commit is contained in:
Marcel Pi 2024-05-06 13:46:15 +02:00 committed by Blyron
parent b4fdc22a17
commit 78c0307e10
1 changed files with 3 additions and 3 deletions

View File

@ -49,14 +49,14 @@ static void ApplyControl(cc::Walker &self, const ControlT &control) {
static void ApplyTexture(
cc::Actor& self,
const carla::rpc::MaterialParameter& MaterialParameter,
const cr::MaterialParameter& MaterialParameter,
const boost::python::object& Texture)
{
boost::python::extract<carla::rpc::TextureColor> ext(Texture);
boost::python::extract<cr::TextureColor> ext(Texture);
if (ext.check())
return self.ApplyTexture(MaterialParameter, ext());
boost::python::extract<carla::rpc::TextureFloatColor> ext_float(Texture);
boost::python::extract<cr::TextureFloatColor> ext_float(Texture);
if (ext_float.check())
return self.ApplyTexture(MaterialParameter, ext_float());