Jump to content

NULL gdp in cookmySOP()


Recommended Posts

Hi guys!

I was doing some small HelloSOP on Windows, however I'm getting a null gdp on the cookmySOP(). Isn't it supposed to have the gdp initialized at this point?

Here goes the method:

OP_ERROR
SOP_GeoInformation::cookMySop(OP_Context &context)
{
	float now = context.myTime;

	// Before we do anything, we must lock our inputs.  Before returning,
	//	we have to make sure that the inputs get unlocked.
	if (lockInputs(context) >= UT_ERROR_ABORT)
		return error();

	// Duplicate incoming geometry.
	if( duplicateSource( 0, context ) > UT_ERROR_NONE )
		return error();

	if ( gdp == NULL)
	{
		cerr << "Null GDP" << endl;
		return error();
	}

       ...
       ...

	unlockInputs();

	return error();
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...