638,6 → 638,8 |
;¯®¨áª ¬ â¥à¨ «®¢ £à ¥© |
shl edx,3 |
add esi,edx |
cmp esi,ecx |
jge .end_points ;¥á«¨ ¥â ¡«®ª á ¬ â¥à¨ «®¬ |
cmp word[esi],CHUNK_FACEMAT |
jne .end_points |
mov [edi+obj_3d.mat1_data],esi |
825,14 → 827,19 |
bt dword[draw_mode],bit_faces_mat |
jnc @f |
mov eax,[edi+obj_3d.mat1_data] |
or eax,eax |
jnz .b_found |
stdcall [buf2d_draw_text], buf_ogl, buf_1,txt_mat_null,5,3,[color_select] |
jmp .mat_null ;¥á«¨ ¥â ¬ â¥à¨ « , à¨á㥬 ¢á¥ £à ¨ ®¤¨¬ 梥⮬ |
.b_found: |
cmp eax,0 |
je .end_points |
mov ebx,eax |
stdcall get_mat_color, eax |
stdcall draw_3d_faces_color, edi,ebx,eax |
stdcall found_mat_faces, ebx |
jmp .b_found |
or eax,eax |
jnz .b_found |
jmp .end_points |
|
@@: |
end if |
|
839,6 → 846,7 |
;à¨á®¢ ¨¥ £à ¥© ¡¥§ 梥⮢ ¬ â¥à¨ «®¢ |
bt dword[draw_mode],bit_faces |
jnc .end_triangles |
.mat_null: |
cmp dword[edi+obj_3d.tri_count],0 |
je .end_triangles |
cmp dword[edi+obj_3d.poi_count],0 |
935,6 → 943,8 |
@@: |
bt dword[draw_mode],bit_light |
jnc .norm0 |
or edx,edx |
jz .norm0 ;¥á«¨ ®à¬ «¥© ¥â |
stdcall [glNormal3fv], edx |
add edx,12 |
.norm0: |
977,7 → 987,7 |
je .end_select |
mov ecx,dword[obj_poi_sel_c] |
stdcall [glColor3ub],[color_select+2],[color_select+1],[color_select] |
stdcall dword[tl_node_poi_get_info], tree3,0 |
stdcall [tl_node_poi_get_info], tree3,0 |
align 4 |
@@: |
cmp eax,0 |
994,7 → 1004,7 |
dec ecx |
jz .end_select |
.next_sel: |
stdcall dword[tl_node_poi_get_next_info], tree3,ebx |
stdcall [tl_node_poi_get_next_info], tree3,ebx |
jmp @b |
.end_select: |
end if |
1170,6 → 1180,8 |
align 4 |
proc found_mat_faces uses ebx, p_mat:dword |
mov eax,[p_mat] |
or eax,eax |
jz @f |
add eax,[eax+2] |
cmp word[eax],CHUNK_FACEMAT |
je @f |