Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GLES2 set_mesh() results in error message "OpenGL ES 2.0 does not allow retrieving blend shape data" #48427

Closed
esbvaGames opened this issue May 3, 2021 · 3 comments

Comments

@esbvaGames
Copy link

esbvaGames commented May 3, 2021

Godot version:

Godot 3.3.x rc9

OS/device including version:

OPENGL 3.0 - INTEL (R) HD GRAPHICS 620
OPENGL 2.0 - INTEL (R) HD GRAPHICS 620

Issue description:

This procedure works correctly, in opengl 2.0, and 3.0, in the editor, but it means a lot of Warning, unnecessary in the DEBUG exported application, although it works correctly, in version 3.1.1, it worked without giving those messages, there should be a way to disable them in the console, there is no checkbok to hide it.

Steps to reproduce:

ConsoleBuggs
ConsoleBugs.zip

extends Area

To see the messages from the console, export this project, as DEBUG.-

Key button pressed, 1,2,3

func _ready():
	#. Editor mesh Porperties MAKE_UNIQUE
	var newMesh = $Cube.get_mesh().duplicate()
	print('new Mesh ...: ', newMesh)
	
	#. Editor material Properties MAKE_UNIQUE
	var newMaterial = $Cube.mesh.surface_get_material(0).duplicate()
	print('New Material: ', newMaterial)
	
	#. Editor Mesh Local to Scene
	$Cube.set_mesh(newMesh)
	$Cube.mesh.surface_set_material(0, newMaterial)
	pass

Minimal reproduction project:

@Calinou
Copy link
Member

Calinou commented May 3, 2021

To see the messages from the console, export this project, as DEBUG.-

Well, you won't see those messages in a project exported in release mode 🙂
The error messages will go away if you use a mesh that doesn't contain blend shapes. You can reexport such a mesh from Blender.

If you really want to hide this message in debug mode, you can check Application > Run > Disable Stderr in the project settings, but you will likely miss important error messages if you do so. (Please disable it before reporting further issues!)
You can override the setting with the standalone feature tag to make this setting only apply to an exported project.

If #48359 is merged, you'll be able to toggle off error messages entirely on a temporary basis. Still, you need to be careful when doing so, as accidentally hiding important error messages happens more often than you'd think.

@Calinou Calinou changed the title openGl 2.0 set_mesh(), mean error warning message (compare 3.1.1, no message) GLES2 set_mesh() results in error message "OpenGL ES 2.0 does not allow retrieving blend shape data" May 3, 2021
@esbvaGames
Copy link
Author

Precisely, I need all the messages, in the console except this one, because it is not an error, and as a warning it does not work at all, since the procedure works!

@akien-mga
Copy link
Member

Fixed by #48480.

@akien-mga akien-mga modified the milestones: 4.0, 3.4 May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants