Page MenuHome

When creating texture/image in Texture Paint mode, both datablocks should get the same name
Closed, ResolvedPublicTO DO

Description

System Information
Ubuntu 16.04 LTS, Nvidia GTX 970

Blender Version
Broken: 2.78a (as well as earlier versions I'm sure)

Short description of error
As the title says. When creating a new paint slot in texture paint mode, you choose the slot type (Normal, Diffuse Color, etc), and give the texture a name. The paint slot shows that name. However, if you check the textures in the properties editor, it instead shows the slot type as the name (e.g. Diffuse Color, or Diffuse Color.003 if you had others before that).

Exact steps for others to reproduce the error
From new startup file:

  1. Select the cube, go to edit mode, select all of it with A.
  2. Unwrap with U, with basic cube projection.
  3. Go to texture paint mode.
  4. In slots tab (hit T to bring up side menu), create a new slot. Type is Diffuse Color, named Paint Slot 1. I used UV Color Grid for texture.
  5. Go to the texture tab in the properties panel, and observe the texture is name Diffuse Color.

If it is indeed a bug, I intend to take it up as my first task for blender development. Thanks.

Event Timeline

It’s not strictly speaking a bug, since what you are naming when creating the texture from Paint mode is the Image datablock itself, not the texture one.

However, totally agree it would make more sense to also name the texture the same way as the image. And this should be a rather easy change, feel free to ask for help if needed. :)

Bastien Montagne (mont29) renamed this task from Discrepancy between texture names in paint slots panel of texture paint mode and texture panel in the properties editor. to When creating texture/image in Texture Paint mode, both datablocks should get the same name.Feb 17 2017, 9:14 AM
Bastien Montagne (mont29) lowered the priority of this task from 90 to Normal.
Bastien Montagne (mont29) edited a custom field.

Diff submitted. I might want to instead keep the type of texture as the default name for the datablock.

Actually, it should automatically assign the name of the texture datablock to be "Material <TEXTURE TYPE>" whatever the type is, if nothing else is provided. Still, not sure if "Diffuse Color" is an okay default.

Also, who should I add as a reviewer? I added @Bastien Montagne (mont29) because he triaged it, but I'm not sure who else to add.

The bug appears only with Blender internal renderer selected. With cycles selected there is no bug.

Bastien Montagne (mont29) changed the task status from Unknown Status to Resolved.Mar 3 2017, 10:52 AM