Jump to content
Developer Wiki and Function Reference Links ×

Suspected bug report for Move3DObj(HANDLE, X, Y, Z);


Recommended Posts

HandletoObject1 := FunctionThatCreates3DObject(parameter1);

 

HandletoObject2 := FunctionThatCreates3DObject(parameter2);

Move3DObj(HandletoObject2, 100, 0, 0);

 

The parameter sent to the second call of FunctionThatCreates3DObject does not generate a 3D object and therefore does not return a handle to the variable.

The call to Move3DObj(); with no value assigned into the handle variable HandletoObject2 will move a 3D object that was created prior.

 

Is NIL a valid handle result to test for? Or would this work-around only work due to a fluke of luck?

IF (HandletoObject2<>NIL) THEN Move3DObj(HandletoObject2, 100, 0, 0);

 

<edit>

Actually it may not be a bug. The Function may still be assigned the value generated from the first call because the second call doesn't replace it due to the parameter in the second instance telling the function nothing is required of it. </edit>

Edited by LarryO
Link to comment

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.   Restore formatting

  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...