Blender And A Null Pointer

ReadAttributePtr try_get_for_read(
const GeometryComponent &component,
const StringRef attribute_name) const final
{
....
const Mesh *mesh = mesh_component.get_for_read();
....
if (mesh == nullptr || mesh->dvert == nullptr) {
static const float default_value = 0.0f;
return std::make_unique<ConstantReadAttribute>(
ATTR_DOMAIN_POINT, mesh->totvert,
CPPType::get<float>(), &default_value);
}
....
}

--

--

--

Co-founder of the PVS-Studio project. Microsoft MVP in the ‘Developer Technologies’ nomination and PhD in Physics and Mathematics.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Day 7 Code Berlin Challenge

The power of release notes

Efficient computations and database usage in eCommerce apps

The quick start guide to using summarizer APIs

Alternatives To Xignite For Palladium Price API

Which project management software to choose? Top 5 software for project management of startups

Our 2 “Cents” on Monetizing HTML5 Games

IMDb — Clone

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Andrey Karpov

Andrey Karpov

Co-founder of the PVS-Studio project. Microsoft MVP in the ‘Developer Technologies’ nomination and PhD in Physics and Mathematics.

More from Medium

How to use node version manager in Windows ?

Python vs Kotlin- Which is Developers Choice?

Javascript Private Properties, setting and getting errors!

Play To Learn Story

Version Controlling